<style>
.myinfo-main .myinfo-right .myprofile ul li .lab {
    text-align: right;
}
.myinfo-main .myinfo-right .myprofile ul li {
    width: 620px;
}
.myinfo-main .myinfo-right .myprofile ul li .inp {
    margin-left: 10px;
}
.submit-btn {
    margin-left: 200px;
}
</style>
<div class="myinfo-main">
	<div class="myinfo-right">
		<div class='myprofile'>
			<p class='title'>&nbsp;&nbsp;Shipping Address</p>
			<?php 
			$form=$this->beginWidget('application.components.widgets.CActiveFormPlus', array(
						'id'=>'login-form',
						'enableClientValidation' => true,
						'clientOptions' => array(
							'validateOnSubmit' => true
						),
			)); ?>
			<ul class='info-left'>
				<li><?php echo $form->labelEx($model,'First Name:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'shipping_first_name',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
						<?php echo $form->error($model,'shipping_first_name'); ?>
					</span>
				</li>
				<li>
					<?php echo $form->labelEx($model,'Last Name:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'shipping_last_name',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
					<?php echo $form->error($model,'shipping_last_name'); ?>
					</span>
				</li>
				<li>
					<?php echo $form->labelEx($model,'Address1:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'shipping_address1',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
					<?php echo $form->error($model,'shipping_address1'); ?>
					</span>
				</li>
				<li><?php echo $form->labelEx($model,'Address2:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'shipping_address2',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
					<?php echo $form->error($model,'shipping_address2'); ?>
					</span>
				</li>


				<li>
					<?php echo $form->labelEx($model,'City:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'shipping_city',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
					<?php echo $form->error($model,'shipping_city'); ?>
					</span>
				</li>
				<li><?php echo $form->labelEx($model,'Country:',array("class"=>"lab")); ?>
					<span class="inp">
						<select name="CustomerOrderShippingInfo[shipping_country]">
				                  <?php foreach ($country as $k => $v) {?>
				                  <option value="<?php echo $v->id;?>"><?php echo $v->name;?></option>
				                  <?php }?>
				        </select>
				     </span>
					<?php echo $form->error($model,'user_name'); ?>
				</li>
				<li>
					<?php echo $form->labelEx($model,'State:',array("class"=>"lab")); ?>
					<span class="inp"><div class="btn-group">
                <select name="CustomerOrderShippingInfo[shipping_state]">
				            <?php foreach ($state as $k => $v) {?>
				            <option value="<?php echo $v->id;?>" <?php echo $model->shipping_state==$v->id?"selected":"" ;?>><?php echo $v->name;?></option>
				            <?php }?>
						</select></span>
					<?php echo $form->error($model,'created'); ?>
				</li>
				<li><?php echo $form->labelEx($model,'Zip code:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'shipping_zip',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
					<?php echo $form->error($model,'shipping_zip'); ?>
					</span>
				</li>
				<li><?php echo $form->labelEx($model,'Phone:',array("class"=>"lab")); ?>
					<span class="inp"><?php echo $form->textField($model,'shipping_phone',array('size'=>20,'maxlength'=>20,'class'=>'form-control' )); ?>
					<?php echo $form->error($model,'shipping_phone'); ?>
					</span>
				</li>

				
				
				<?php echo CHtml::button('confirm',array('type' => 'submit','class' => 'btn submit-btn'))?>
			</ul>

			<?php $this->endWidget(); ?>
		</div>
	</div>
</div>